package com.inet.test05;

import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.UUID;

/**
 * @Author weijingchen
 * @Date 2025/6/26 15:15
 * @Version 1.0.0
 */
public class Server {
    public static void main(String[] args) throws IOException {
        ServerSocket ss = new ServerSocket(10301);
        while (true) {
            Socket socket = ss.accept();
            System.out.println("连接成功");
            //开启一条线程

            new Thread(new MyRunnable(socket)).start();
        }
    }
}
